package com.central.common.feign

import com.central.common.constant.ServiceNameConstants
import com.central.common.feign.fallback.AttentionServiceFallbackFactory
import com.central.common.feign.fallback.VisitServiceFallbackFactory
import org.springframework.cloud.openfeign.FeignClient
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable

/**
 * @author  fly
 * @date  2021/5/27 17:26
 * @version 1.0
 */
@FeignClient(name = ServiceNameConstants.REAL_SERVICE, fallbackFactory = VisitServiceFallbackFactory::class, decode404 = true)
interface VisitService {


    /**
     * 获取我的来访者用户列表id
     */
    @GetMapping("/visit/getMyVisitUserId/{userId}")
    fun getMyVisitUserId(@PathVariable("userId") userId: Long): List<String>?
}